package com.example.cor.chain;

import com.example.cor.filter.Filter;

import javax.servlet.Servlet;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import java.io.IOException;

public interface FilterChain {


    void addFilter(Filter filter);

    void setTarget(Servlet servlet);

    void next(ServletRequest request, ServletResponse response ) throws IOException, ServletException;
}
